//
//  SSMineTableViewCell.m
//  Gift
//
//  Created by Lee on 16/1/7.
//  Copyright © 2016年 Lee. All rights reserved.
//

#import "MineTableViewCell.h"
#import "CustomTableViewCell.h"

@interface MineTableViewCell ()

@end

@implementation MineTableViewCell



-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        //收藏传值，获取收藏的model
    
//        self.manager = [CoreDataManager shareManager];
//        [self chaZhao];
        self.backgroundColor = [UIColor clearColor];
        self.cellImage = [[UIImageView alloc]init];
        
        self.label = [[UILabel alloc]init];
        self.label.font = [UIFont systemFontOfSize:15];
        [self.label sizeToFit];
        
        self.label1 = [[UILabel alloc]init];
        [self.label1 sizeToFit];
        self.label1.font = [UIFont systemFontOfSize:13];

        
        [self addSubview:self.cellImage];
        [self addSubview:self.label];
        [self addSubview:self.label1];
        
    }
    return self;
}




-(void)layoutSubviews{
    [super layoutSubviews];
    self.cellImage.frame = CGRectMake(5 * XWIDTH, 5 * XHIGHT, 30 * XWIDTH, 30 * XHIGHT);
    self.label.frame = CGRectMake(50 * XWIDTH, 10 * XHIGHT, 100 * XWIDTH, 20 * XHIGHT);
    self.label1.frame = CGRectMake(self.width - 70 * XWIDTH, 10 * XHIGHT, 70 * XWIDTH, 20 * XHIGHT);
    
}



- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
